<!-- Placed at the end of the document so the pages load faster -->
<script>window.jQuery || document.write('<script src="/assets/libs/jquery/dist/jquery.min.js"><\/script>')</script>
<script src="__ASSETS__/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="__INDEX__/js/docs.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="__INDEX__/js/ie10-viewport-bug-workaround.js"></script>
<script>
    $('#mobilephone').blur(function () {
        var phone =  $('#mobilephone').val();
        $.ajax({
            method:"POST",
            url: "{:url('/index/login/register')}",
            data:{'phone':phone},
            dataType:"json"
        }).done(function( data ) {
            if (!data){ //手机号码已经注册
                $('#tips').text('该号码已被占用').show();
            }else{
                if (data==1){ //无效手机号码
                    $('#tips').text('无效的手机号码').show();
                } else if(data==2){ //手机号码正常
                    $('#tips').hide();
                }
            }
        });
    });
    //点击刷新验证码
    function refreshverify(){
        var ts = Date.parse(new Date())/1000;
        $('#code').attr("src", "/index/login/verify?id="+ts);
    }
</script>
<svg xmlns="http://www.w3.org/2000/svg" width="1140" height="500" viewBox="0 0 1140 500" preserveAspectRatio="none" style="display: none; visibility: hidden; position: absolute; top: -100%; left: -100%;"><defs><style type="text/css"></style></defs><text x="0" y="57" style="font-weight:bold;font-size:57pt;font-family:Arial, Helvetica, Open Sans, sans-serif">Thirdslide</text></svg>